<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/style.css" />
<script type="text/javascript" src="<?php echo base_url() ?>js/showhide.js"></script>

<title><?php echo $title ?> - Workflow system</title>
</head>
<body>

<h1>Workflow system</h1>
<h2><?php echo $title ?></h2>

<ul id="menu">
	<li><a href="<?php echo site_url('home/main') ?>">Homepage</a></li>
	<li><a href="<?php echo site_url('users/logout') ?>">Log out</a></li>
<?php if (isset($menu_items)): foreach ($menu_items as $link => $title): ?>
	<li><a href="<?php echo $link ?>"><?php echo $title ?></a></li>
<?php endforeach; endif; ?>
</ul>

<p id="logged_in">Logged in as <strong><?php echo get_instance()->session->userdata('firstname') ?> <?php echo get_instance()->session->userdata('surname') ?></strong></p>

<div id="content">

<?php if (isset($message)) : ?>
	<fieldset>
		<legend>Message</legend>
		<p><?php echo $message ?></p>
	</fieldset>
<?php endif; ?>

	<?php echo $content ?>
</div>

</body>
</html>